\begin{problem}{Toplist}{toplist.in}{toplist.out}{1 second}{32 megabytes}

At the end of the year, a popular radio station publishes a list of songs,
ranked by listeners' votes throughout the year. The station keeps the list
confidential for a while, and organizes a guessing competition for the listeners.
They announce certain hints about the placement of some songs and ask the
listeners to deduce the exact positions of as many songs as possible.

For example, consider the following two statements:
\begin{itemize}
\item The song ``\t{Ti Da Bu Di Bu Da}'' is one of the top three songs.
\item Songs ``\t{Treba mi nesto jace od sna}'' and ``\t{Ja se konja bojim}'' are among the top two songs.
\end{itemize}

They don't reveal anything directly, but one can still deduce that the
song ``\t{Ti Da Bu Di Bu Da}'' comes in third on the list.
Write a program that, given a number of statements,
outputs all songs whose exact position on the list can be deduced.

\InputFile

The first line of input contains an integer $N$ ($1 \le N \le 500$) --- the number of statements.

Each of the following $N$ lines contains a statement of the form
``$A$ \texttt{of} $B$ $song_1$ $song_2$ \dots $song_A$'' ($1 \le A \le B \le 100$), meaning that the songs
$song_1$, \dots, $song_A$ are among the top $B$ songs on the list.
Each song name is a string, consisting of at most 20 lowercase letters (`\texttt{a}'--`\texttt{z}').
The total number of different songs across all statements will be at most 500.

Note: the statements will not contradict each other and there will be at least
one song whose exact position can be deduced.


\OutputFile

Output all songs whose position on the list can be deduced.
The result should be printed in the form ``$position$ $song$'',
sorted in ascending order by position, each song on its own line.

\Example

\begin{example}
\exmp{
2
1 of 3 tidabu
2 of 2 trebami jasekonja
}{
3 tidabu
}%
\exmp{
3
2 of 2 pjesmaa pjesmab
3 of 4 pjesmaa pjesmac pjesmad
1 of 3 pjesmad
}{
3 pjesmad
4 pjesmac
}%
\exmp{
4
1 of 4 jedan
2 of 3 dva tri
1 of 1 cetiri
1 of 4 dva
}{
1 cetiri
4 jedan
}%
\end{example}

\end{problem}
